package com.app.feignservicesample.handler;

import com.app.feignservicesample.servicce.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/8 11:39
 */
@RestController
public class FeignHandler {
    @Autowired
     private HiService hiService;

    @GetMapping("/hi")
    public String hi(@RequestParam String name){

        return hiService.hi(name);
    }

}
